package com.upoint.sellorderservice;

/**
 * @author jsbintask@gmail.com
 * @date 2019/2/21 16:41
 */
public interface Constants {
    String PRODUCT_MSG_EXCHANGE = "product-msg-exchange";
    String INCREASE_STOCK = "increase-product-stock";
    String DECREASE_STOCK = "decrease-product-stock";
    String INCREASE_ROUTEING_KEY = "increase-routing-key";
    String DECREASE_ROUTEING_KEY = "decrease-routing-key";

    /**
     * redis
     */
    String REDIS_PRODUCT_DECREASE_STOCK_PREFIX = "redis:product:decrease:stock:%s";
    String REDIS_PRODUCT_INCREASE_STOCK_PREFIX = "redis:product:increase:stock:%s";

    interface OrderStatus {
        int NEW = 0;
        int CANCELED = 3;
        int FINISHED = 1;
    }

    interface PayStatus {
        int WAITING_PAY = 0;
        int PAY_FINISHED = 1;
    }

}
